﻿using B.S.Domain.审计字段;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace B.S.Domain.Ticket
{
    /// <summary>
    /// 工单表
    /// </summary>
    public class WorkOrder:BaseModel
    {
        /// <summary>
        /// 主键
        /// </summary>
        [Key]
        public int WorkId { get; set; }
        /// <summary>
        /// 编码
        /// </summary>
        public string WorkCode { get; set; }
        /// <summary>
        /// 类型
        /// </summary>
        public int Type { get; set; }

        /// <summary>
        /// 客户
        /// </summary>
        public int CustomerId { get; set; }
        /// <summary>
        /// 产品主数据
        /// </summary>
        public int ProductId { get; set; }
        /// <summary>
        /// 工艺路线
        /// </summary>
        public int ProcessroutId { get; set; }
        /// <summary>
        /// 产线
        /// </summary>
        public int ProductionlineId { get; set; }
        /// <summary>
        /// 计划开始时间
        /// </summary>
        public DateTime? StartTime { get; set; }
        /// <summary>
        /// 数量
        /// </summary>
        public int WorkNum { get; set; }
        /// <summary>
        /// 是否允许跳工序
        /// </summary>
        public bool IsSkipprocess { get; set; } = false;
        /// <summary>
        /// 来源
        /// </summary>
        public int Scoure {  get; set; }
        /// <summary>
        /// 状态
        /// </summary>
        public int States { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }
        /// <summary>
        /// 外键
        /// </summary>
        public int DingDanId { get; set; }
        /// <summary>
        /// 结束时间
        /// </summary>
        public DateTime? EndTime { get; set; }

    }
}
